<%@page import="bean.guest_bookVO"%>
<%@page import="bean.guest_bookDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>방명록 입력중</title>
<link rel = 'stylesheet' href = './css/style.css'/>
<script src = '/semy2/src/js/guest_book.js'> </script>
</head>
<body>
<jsp:useBean id="vo" class = "bean.guest_bookVO" scope="page"></jsp:useBean>
<jsp:setProperty property="*" name="vo"/>

<%
guest_bookDTO dto = new guest_bookDTO();
dto.setVo(vo);
dto.guest_book_insert(vo);
%>

<li><label class = la2>아이디 : </label><%=vo.getM_id() %></li><br/>
<li><label class = la2>글번호 : </label><%=vo.getG_rno() %></li><br/>
<li><label class = la2>글내용 : </label><%=vo.getG_text() %></li><br/>

<form name = 'hidden_guest_book_frm' method  = 'post'>
	<input type="hidden" name='now_page' value="<%=vo.getNow_page()%>"/>
	<input type="hidden" name='m_id' value="<%=vo.getM_id()%>"/>
</form>
<script type="text/javascript">location.href = "index.jsp?page_set=./guest_book.jsp"</script>
<p/>
<body>

</body>
</html>